package com.hbue.springboot.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hbue.springboot.pojo.TbWorker;
import com.hbue.springboot.utils.QueryParams;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ManageWorkerService {
    List<TbWorker> getAllWorkers();
    int addWorker(TbWorker worker);
    int deleteWorker(int id);
    int deleteWorkers(List<Integer> ids);
    int updateWorker(TbWorker worker);
    List<TbWorker> getWorkerByName(String workerName);
    int updateWorkerSalary(int money, int id);
    void uploadImage(MultipartFile file);
    IPage<TbWorker> listWorker(QueryParams queryParams);
    int saveOrUpdate(TbWorker worker);
}
